<template>
    <div class="page">
        <h1>{{ title }}</h1>
        <div class="hd">
            <slot name="hd"></slot>
        </div>
        <div class="ct">
            <slot name="ct"></slot>
        </div>
        <div class="ft">
            <slot name="ft"></slot>
        </div>
    </div>

</template>
<script>
import { defineComponent } from "vue";

export default defineComponent({
    props: ['title']
})
</script>

<style scoped>
.page {
    /* padding: 30px; */
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.hd {
    margin-bottom: 20px;
}

.ct {
    height: 0;
    flex-grow: 1;
}
</style>